package ctwing

const SubscribeMessageTypeCommandResponse = "commandResponse"

// 设备命令响应
type SubscribeMessageCommandResponse struct {
	SubscribeMessageCommon
	TaskId int64 `json:"taskId"` // 指令任务ID
	Result struct {
		ResultCode   string `json:"resultCode"`   // 指令执行状态
		ResultDetail string `json:"resultDetail"` // 指令执行结果
	} `json:"result"` // 指令执行结果
}

// 指令执行状态常数
const (
	SubscribeMessageCommandResultSuccessful = "SUCCESSFUL" // 成功
	SubscribeMessageCommandResultSent       = "SENT"       // 已发送
	SubscribeMessageCommandResultDelivered  = "DELIVERED"  // 已送达
	SubscribeMessageCommandResultFailed     = "FAILED"     // 失败
)
